#pragma once

class Dot
{
private:
	static const float verts[];
	static const int size;

private:
	int x;
	int y;
	GLuint VAO;
	glm::vec3 color{ 0.5f, 1.0f, 0.0f };

public:
	Dot(int x, int y);
	~Dot();

	bool render();
	bool moveto(int dx, int dy);

	bool collide(int x, int y);

	int getX() { return x; }
	int getY() { return y; }

	void setColor(const glm::vec3 & color);

public:
	static const glm::vec3 COLOR_T;
	static const glm::vec3 COLOR_F;
};